import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber } from 'class-validator';

export class CreateOrderDto {
  @IsNumber()
  @IsNotEmpty()
  @ApiProperty({ description: '使用过这个服务的车辆ID' })
  carId: number;

  @IsNumber()
  @IsNotEmpty()
  @ApiProperty({ description: '使用过这个服务的用户ID' })
  userId: number;

  @IsNumber()
  @IsNotEmpty()
  @ApiProperty({ description: '产生这个订单的服务ID' })
  serviceId: number;
}
